package com.itheima;

public class Demo01 {
    public static void main(String[] args) {
        Fu fu = new Fu();
        fu.sing();
        Zi zi = new Zi();
        zi.sing();
        zi.dance();
        Zi2 zi2 = new Zi2();
        zi2.sing();
        zi2.dance();

    }

}
class Fu{
    public void sing(){
        System.out.println(
                "只因你太美"
        );
    }
    public void dance(){
        System.out.println("蹦迪蹦一晚上");
    }

}

class Zi extends Fu{


}
class Zi2 extends Fu{

}